from Products.getpaid4cn import getpaid4cnMessageFactory as _
from Products.PloneGetPaid.vocabularies import TitledVocabulary
from zope.schema import vocabulary
MY_COUNTRIES = [ ('CN', _(u'CHINA'))]
def Countries( context ):
      return TitledVocabulary.fromTitles(MY_COUNTRIES)
  
def WeightUnits( context ):
    return vocabulary.SimpleVocabulary.fromValues ([_(u"Pounds"),_(u"Kg")])
                                                   
def Currencies(context):    
    return vocabulary.SimpleVocabulary.fromValues ([_(u"US Dollars"),_(u"RMB")] )



def States( context ):
    return TitledVocabulary.fromTitles(
        [
   ("CN-11",_(u"Beijing")),
   ("CN-50",_(u"Chongqing")),
   ("CN-31",_(u"Shanghai")),
   ("CN-12",_(u"Tianjin")),
   ("CN-34",_(u"Anhui")),
   ("CN-35",_(u"Fujian")),
   ("CN-62",_(u"Gansu")),
   ("CN-44",_(u"Guangdong")),
   ("CN-52",_(u"Gulzhou")),
   ("CN-46",_(u"Hainan")),
   ("CN-13",_(u"Hebei")),
   ("CN-23",_(u"Heilongjiang")),
   ("CN-41",_(u"Henan")),
   ("CN-42",_(u"Hubei")),
   ("CN-43",_(u"Hunan")),
   ("CN-32",_(u"Jiangsu")),
   ("CN-36",_(u"Jiangxi")),
   ("CN-22",_(u"Jilin")),
   ("CN-21",_(u"Liaoning")),
   ("CN-63",_(u"Qinghai")),
   ("CN-61",_(u"Shaanxi")),
   ("CN-37",_(u"Shandong")),
   ("CN-14",_(u"Shanxi")),
   ("CN-51",_(u"Sichuan")),
   ("CN-71",_(u"Taiwan")), 
   ("CN-53",_(u"Yunnan")),
   ("CN-33",_(u"Zhejiang")),
   ("CN-45",_(u"Guangxi")),
   ("CN-15",_("Nei Monggol")),
   ("CN-64",_(u"Ningxia")),
   ("CN-65",_(u"Xinjiang")),
   ("CN-54",_(u"Xizang")),
   ("CN-91",_(u"Hong Kong"))
        ]
        )
                                                   
                                                   
  